package day2;

import java.util.Scanner;

public class zy2 {
    public static void main(String[] args) {
        Scanner in =  new Scanner(System.in);
        System.out.println("请输入作业名称");
        String a = in.next();
        if (a.endsWith(".zip")||a.endsWith(".rar")){
            System.out.println("格式合适");
        }else {
            System.out.println("格式不合适");
        }
    }
}
